package com.aegis.gateway.strategy;

import com.aegis.gateway.service.FilterManageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;

/**
 * @Author wuweixin
 *
 * @Version 1.0
 * @Descritube 白名单，后续过滤器放行
 */
@Component
@Slf4j
public class WhiteListFilterDistributeHandler extends AbsFilterDistributeHandler {
    @Override
    public void handle(ServerWebExchange exchange, Object extra) {
        log.info("white list pass");
        filterManageService.filterChainEnd(exchange);
    }
}
